* Close the browser and reset state.
()
| 148 | * Close the browser and reset state. |
| 149 | */ |
| 150 | async function closeBrowser(): Promise<void> { |
| 151 | if (browser) { |
| 152 | await browser.close(); |
| 153 | browser = null; |
| 154 | page = null; |
| 155 | currentRefs.clear(); |
| 156 | } |
| 157 | } |
| 158 | |
| 159 | /** |
| 160 | * Parse refs from the AI snapshot format. |
no test coverage detected