Rainfall-Learning - Coding Tutoring PlatformformatTimestamp()On this pageformatTimestamp() const formatTimestamp: (timestamp) => string; Formats a timestamp into a relative string (e.g., "Just now", "2h ago", "5d ago"). Parameters ParameterTypeDescriptiontimestampstringThe timestamp string to format. Returns string A formatted relative time string.