Get the TabSession for the active tab.
()
| 940 | // ─── Session Access ──────────────────────────────────────── |
| 941 | /** Get the TabSession for the active tab. */ |
| 942 | getActiveSession(): TabSession { |
| 943 | const session = this.tabSessions.get(this.activeTabId); |
| 944 | if (!session) throw new Error('No active page. Use "browse goto <url>" first.'); |
| 945 | return session; |
| 946 | } |
| 947 | |
| 948 | /** Get a TabSession by tab ID. Used by /batch for parallel tab execution. */ |
| 949 | getSession(tabId: number): TabSession { |