duplicate method
Duplicates a tab.
tabId
The ID of the tab to duplicate.
Implementation
Future<Tab?> duplicate(int tabId) async {
var $res =
await promiseToFuture<$js.Tab?>($js.chrome.tabs.duplicate(tabId));
return $res?.let(Tab.fromJS);
}