(engine: Host)
| 928 | } |
| 929 | |
| 930 | async function startedAtOf(engine: Host): Promise<number | null> { |
| 931 | const startedAt: unknown = await engine.startedAt().catch(() => undefined) |
| 932 | |
| 933 | return typeof startedAt === 'number' ? startedAt : null |
| 934 | } |
| 935 | |
| 936 | async function bind(engine: Host, cwd: string): Promise<void> { |
| 937 | sessionStartMs = (await startedAtOf(engine)) ?? (await engine.now()) |