Get a tabs.Tab
containing information about the tab that this script is running in.
Note: This function is only useful in contexts where there is a browser tab, such as an options page.
If you call it from a background script or a popup, it will return undefined
.
This is an asynchronous function that returns a Promise
.