chromeUtils.js
/**
 * chrome.tabs.query returning a promise
 * @returns Tabs array
 */
chrome.tabs.query returning a promise
@returns Tabs array
chrome . tabs . query returning a promise @returns Tabs array
function chromeTabsQuery(object) {
  return new Promise(resolve => {
    chrome.tabs.query({}, resolve)
  })
}
function chromeTabsQuery ( object ) { return new Promise ( resolve => { chrome . tabs . query ( { } , resolve ) } ) }
chrome.tabs.query returning a promise
 @returns Tabs array
chrome . tabs . query returning a promise @returns Tabs array