subMonths
import { subMonths } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// Subtract 5 months from 1 February 2015:
const result = subMonths(new Date(2015, 1, 1), 5)
//=> Mon Sep 01 2014 00:00:00
function subMonths<DateType extends Date>(date: DateType | number | string, amount: number): DateType;