endOfSecond
import { endOfSecond } from "https://esm.sh/v135/date-fns@3.6.0/index.d.mts";
@example
// The end of a second for 1 December 2014 22:15:45.400:
const result = endOfSecond(new Date(2014, 11, 1, 22, 15, 45, 400))
//=> Mon Dec 01 2014 22:15:45.999
function endOfSecond<DateType extends Date>(date: DateType | number | string): DateType;