export const formatTimestamp = (timestamp: number | undefined): string => { const d = new Date((timestamp ?? 0) * 1000) const month = ('0' + (d.getMonth() + 1)).slice(-2) return d.getFullYear() + '/' + month + '/' + d.getDate() + ' ' + d.getHours() + ':' + d.getMinutes() }