• Formats a file size in bytes into a human-readable string. Converts bytes to KB, MB, or GB as appropriate.

    Parameters

    • bytes: number

      The file size in bytes.

    Returns string

    A formatted string representing the file size.