function r(t) {
  if (t === 0) return "0 B";
  const n = ["B", "KB", "MB", "GB", "TB"], o = 1024, a = Math.floor(Math.log(t) / Math.log(o));
  return `${parseFloat((t / Math.pow(o, a)).toFixed(2))}${n[a]}`;
}
export {
  r as default
};
//# sourceMappingURL=formatFileSize.js.map
