import { millify as millifyFn } from 'millify';
import type { MillifyOptions } from 'millify/dist/options';

export const millify = (count: number, options?: Partial<MillifyOptions>): string =>
  millifyFn(count, {
    precision: 1,
    locales: [],
    ...options,
  });
