                  return `${minutes} ${minutes === 1 ? 'minute' : 'minutes'} ago`;
                }

                // If less than a day
                if (diff < 24 * 60 * 60 * 1000) {
                    const hours = Math.floor(diff / (60 * 60 * 1000));
                    return `${hours} ${hours === 1 ? 'hour' : 'hours'} ago`;
                }

                // Otherwise show days
                const days = Math.floor(diff / (24 * 60 * 60 * 1000));
                return `${days} ${days === 1 