(date: Date | string)
| 47 | } |
| 48 | |
| 49 | export function timeAgo(date: Date | string): string { |
| 50 | return formatDistanceToNow(date, { addSuffix: true }); |
| 51 | } |
| 52 | |
| 53 | export function stripHtmlTags(html: string): string { |
| 54 | return html.replace(/<[^>]*>/g, '').trim(); |
no outgoing calls
no test coverage detected
searching dependent graphs…