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 promiseToFuture<void>($js.chrome.tabs.remove(switch (tabIds) {
int() => tabIds.jsify()!,
List<int>() => tabIds.toJSArray((e) => e),
_ => throw UnsupportedError(
'Received type: ${tabIds.runtimeType}. Supported types are: int, List<int>')
}));
}