src/utils/timestamp.ts
/**
* This function converts a timestamp in bigint to a Date object.
* @param timestamp The timestamp to convert to a Date object.
* @returns The Date object.
*/
export function convertBigIntTimestampToDate(timestamp: bigint): Date {
return new Date(Number(timestamp) * 1000);
}