1 import browser from '@proton/pass/lib/globals/browser';
2 import type { TabId } from '@proton/pass/types';
3 import { truthy } from '@proton/pass/utils/fp/predicates';
5 export const filterDeletedTabIds = async (tabIds: TabId[]): Promise<TabId[]> =>
8 tabIds.map(async (tabId) => {
10 const tab = await browser.tabs.get(tabId);
11 if (!tab) return tabId;