close_menus = () => {
		for (const { menu_button_el } of top_level_menus) {
			if (menu_button_el.getAttribute("aria-expanded") === "true") {
				menu_button_el.dispatchEvent(new CustomEvent("release", {}));
			}
		}
	}
This is for exiting submenus.
@type {WeakMap<HTMLElement, HTMLElement>}