I also had big problems. Finally, I solved this by setting a listener for Chrome, creating a new tab. See code below:
chrome.tabs.onCreated.addListener(function(tab) {
I personally saved an array of tab identifiers that I need, and added and removed them as needed. See this documentation for help on what to do with tabs.
source share