ungroup method
Removes one or more tabs from their respective groups. If any groups
become empty, they are deleted.
tabIds
The tab ID or list of tab IDs to remove from their respective
groups.
Implementation
Future<void> ungroup(Object tabIds) async {
await promiseToFuture<void>($js.chrome.tabs.ungroup(switch (tabIds) {
int() => tabIds.jsify()!,
List<int>() => tabIds.toJSArray((e) => e),
_ => throw UnsupportedError(
'Received type: ${tabIds.runtimeType}. Supported types are: int, List<int>')
}));
}