(thread: Record<string, unknown>)
| 134 | } |
| 135 | |
| 136 | export function getThreadCreatedTimestamp(thread: Record<string, unknown>) { |
| 137 | const raw = (thread.createdAt ?? thread.created_at) ?? 0; |
| 138 | return normalizeThreadTimestamp(raw); |
| 139 | } |
| 140 | |
| 141 | export function previewThreadName(text: string, fallback: string) { |
| 142 | const trimmed = text.trim(); |
no test coverage detected