(items: readonly { type: string; count: number }[])
| 24 | return `- **${words.typeCount(group.type, group.count)}:** ${names}`; |
| 25 | } |
| 26 | const totals = (items: readonly { type: string; count: number }[]) => items.slice(0, TYPES_PER_SIDE).map(item => `${item.type} ${item.count}`).join(', '); |
| 27 | |
| 28 | export function viewAnswer(evidence: GalaxyEvidence, language: 'en' | 'de'): string { |
| 29 | const words = relationshipWords[language], text = viewText[language]; |