(error: unknown)
| 1394 | | { readonly kind: 'cancelled' }; |
| 1395 | |
| 1396 | function errorMessage(error: unknown): string { |
| 1397 | return error instanceof Error ? error.message : String(error); |
| 1398 | } |
| 1399 | |
| 1400 | function formatHelpReport(commands: readonly AvailableCommand[]): string { |
| 1401 | const visibleCommands: readonly AvailableCommand[] = |