remove method
Closes one or more tabs.
tabIds The tab ID or list of tab IDs to close.
Implementation
Future<void> remove(Object tabIds) async {
await $js.chrome.tabs
.remove(switch (tabIds) {
int() => tabIds.toJS,
List<int>() => tabIds.toJSArray((e) => e.toJS),
_ => throw UnsupportedError(
'Received type: ${tabIds.runtimeType}. Supported types are: int, List<int>')
})
.toDart;
}