The free and privacy-friendly screen recorder with no limits 🎥
JavaScript annotationannotation-toolaudiocamerachrome-extensiondesigneditorffmpegjavascriptproductivityrecorderscreen-capturescreen-recorderscreencasttensorflowvideo
export const removeTab = async (tabId) => {
if (tabId === null) return;
try {
const tab = await new Promise((resolve) => {
chrome.tabs.get(tabId, (tab) => {
resolve(tab);
});
});
if (tab && tab.id) {
chrome.tabs.remove(tab.id);
}
} catch (error) {
// Tab doesn't exist or can't be accessed
}
};