import { Tabs } from "wxt/browser"; export async function closeTabsAsync(tabs: Tabs.Tab[]): Promise { if (tabs.length < 1) return; await browser.tabs.create({ active: true, windowId: tabs[0].windowId }); await browser.tabs.remove(tabs.map(i => i.id!)); }