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