Looking at the documentation it appears that chrome.tabs.query returns a Promise, so you’ll need to take that into account. Also, you are just calling the method, you aren’t actually saving the return value.
Did you look at the example in the docs I linked to? I’m guessing you should do something similar to that. I’ve never played with this particular API but the example they had seemed pretty clear.