()
| 475 | export const getCommandByKey = (key: string): CommandDefinition | undefined => COMMANDS_BY_KEY.get(key) |
| 476 | |
| 477 | const getFeaturedCommands = (): CommandDefinition[] => COMMANDS.filter((command) => command.featured) |
| 478 | |
| 479 | export const getMenuColumnWidths = (commands: CommandDefinition[]): MenuColumnWidths => ({ |
| 480 | categoryWidth: Math.max(...commands.map((command) => command.category.length)), |