title: trying to execute JS code on a tab but getting executeScript is undefined
body: <p>Out of no where  chrome.tabs.executeScript is undefined, I'm really not sure what happened, I rolled back almost everything that matters but still undefined, I posted a simple code where it's also not working, this code is from the background.js script, what am I missing?</p>
  <pre><code>chrome.alarms.onAlarm.addListener(async (alarm) =&gt; {
  
    if (alarm.name == &quot;CheckJobs&quot;) {
      d4rTabId 0;
      console.log('from cahce: '+d4rTabId);
  
        chrome.tabs.create({ url: &quot;https://stackoverflow.com/questions/66618167/chrome-extension-alarm-interval-working-after-a-while&quot;, active: false }, async tab =&gt; {
          d4rTabId = tab.id;
          console.log(d4rTabId);
          chrome.tabs.executeScript(d4rTabId,
            {
              code: &quot;document.title ='aaaa'&quot;
            })
        });
      }});
  
  
  {
    &quot;name&quot;: &quot;aaa&quot;,
    &quot;version&quot;: &quot;0.0.1&quot;,
    &quot;manifest_version&quot;: 3,
    &quot;background&quot;: {
      &quot;service_worker&quot;:&quot;background.js&quot; //&quot;bgjob2.js&quot; //
    },
    &quot;permissions&quot;: [
      &quot;tabs&quot;,
      &quot;alarms&quot;,
      &quot;activeTab&quot;,
      //&quot;background&quot;,
      &quot;storage&quot;
      //&quot;identity&quot;,
      //&quot;identity.email&quot;
    ],
    &quot;host_permissions&quot;: [
      &quot;http://*/&quot;,
      &quot;https://*/&quot;,
      &quot;*://*/*&quot;
    ],
    &quot;icons&quot;: {
      &quot;16&quot;: &quot;aaa.png&quot;,
      &quot;48&quot;: &quot;aaaa.png&quot;,
      &quot;128&quot;: &quot;aaaaa.png&quot;
    },
    &quot;action&quot;: {
  
      &quot;default_popup&quot;: &quot;/popout/pop.html&quot;,
      &quot;default_title&quot;: &quot;aaa&quot;
    },
    &quot;content_scripts&quot;: [
      {
        &quot;matches&quot;: [
          &quot;http://*/*&quot;,
          &quot;https://*/*&quot;,
          &quot;*://*/*&quot;
        ],
        &quot;js&quot;: [
          &quot;jquery-3.6.0.slim.min.js&quot;
        ]
      }
    ]
  }
  </code></pre>