"""Extension-control namespace: ``b.extension.*``.""" from __future__ import annotations from browser_cli.sdk.base import Namespace class ExtensionNS(Namespace): """Control the browser-cli extension itself.""" def reload(self) -> None: """Reload the browser-cli extension service worker. Schedules a ``chrome.runtime.reload()`` inside the extension and returns immediately. The extension restarts ~200 ms later and reconnects via the keepalive alarm within ~25 seconds. """ self._c._cmd("extension.reload", {})