const o = (n, s) => {
  let t = document.createElement("canvas");
  const e = t.getContext("2d");
  e.font = `${n}px system-ui`;
  const c = e.measureText(s);
  return setTimeout(() => {
    t = null;
  }, 0), c.width;
};
export {
  o as getTextWidth
};
