function makeParamsOptional(fn) {
  return /** @type {(...args: LH.Util.RecursivePartial<TParams>) => TReturn} */ (fn);
}
@template {unknown[]} TParams
@template TReturn
@param {(...args: TParams) => TReturn} fn