code of Manifest v 2 switch/apply to Manifest v 3
This code I saw in post (Invisible tabs in chrome extension) here too in stackoverflow, and seems its connected to my problem, but the version of this and post of this old, so how i may update this for this to work as it is? :