numWithUnits = (n, {
  abbreviate = true,
  unitSingular = 'sat',
  unitPlural = 'sats',
  format
} = {}) => {
  if (isNaN(n)) {
    return `${n} ${unitPlural}`
  }
  return `${abbreviate ? abbrNum(n) : !abbreviate || format === true ? new Intl.NumberFormat().format(n) : n} ${n === 1 ? unitSingular : unitPlural}`
}
Take a number that represents a count
and return a formatted label e.g. 0 sats, 1 sat, 2 sats

@param n The number of sats
@param opts Options
@param opts.abbreviate Whether to abbreviate the number
@param opts.unitSingular The singular unit label
@param opts.unitPlural The plural unit label
@param opts.format Format the number with `Intl.NumberFormat`. Can only be used if `abbreviate` is false