I want to set and get data from each tab.
like
const tab = await browser.tabs.getCurrent();
tab.mydata += 1;
Currently, I implements things like that using tabId and I have to manage them manullay, releasing when the tab is closed.
I wonder if there’s any convenient way to do it.