(dateStr: string)
| 39 | } |
| 40 | |
| 41 | function formatDate(dateStr: string): string { |
| 42 | const d = new Date(dateStr); |
| 43 | return d.toLocaleString(undefined, { |
| 44 | month: "short", |
| 45 | day: "numeric", |
| 46 | hour: "2-digit", |
| 47 | minute: "2-digit", |
| 48 | }); |
| 49 | } |
| 50 | |
| 51 | type ExtendedNewsItem = NewsItem & { relevance_score?: number }; |
| 52 |