()
| 12 | * run the same cleanup. |
| 13 | */ |
| 14 | export async function exitFreebuffCleanly(): Promise<never> { |
| 15 | await withTimeout( |
| 16 | Promise.allSettled([flushAnalytics(), endFreebuffSessionBestEffort()]), |
| 17 | EXIT_CLEANUP_TIMEOUT_MS, |
| 18 | undefined, |
| 19 | ) |
| 20 | process.exit(0) |
| 21 | } |
no test coverage detected