async function enableDevToolsThrottling() {
  // @ts-expect-error import
  const {LighthousePanel} = await import('./panels/lighthouse/lighthouse.js');
  const panel = LighthousePanel.LighthousePanel.instance();

  const toolbarRoot = panel.contentElement.querySelector('.lighthouse-settings-pane devtools-toolbar');
  toolbarRoot.querySelector('option[value="devtools"]').selected = true;
  toolbarRoot.querySelector('select').dispatchEvent(new Event('change'));
}
@param {LH.Result} lhr
@param {LH.Artifacts} artifacts