tabs.query() - Mozilla | MDN

Gets all tabs that have the specified properties, or all tabs if no properties are specified.