function tabGroupRemoved(group) {
console.log(`Tab group with ID ${group.id} was removed.`);
}
browser.tabGroups.onRemoved.addListener(tabGroupRemoved);tabGroups.onRemoved / notebook
tabGroups.onRemoved
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.