"use strict";

Object.defineProperty(exports, "__esModule", {
  value: true
});
exports.msToTimeString = void 0;

const msToTimeString = (ms, includeSeconds = false) => {
  if (!ms) {
    return '';
  }

  const d = new Date(ms);
  const hours = (d.getHours() + '').padStart(2, '0');
  const minutes = (d.getMinutes() + '').padStart(2, '0');
  const seconds = (d.getSeconds() + '').padStart(2, '0');
  return "".concat(hours, ":").concat(minutes) + (includeSeconds ? ":".concat(seconds) : '');
};

exports.msToTimeString = msToTimeString;