import { startOfYesterday } from "https://deno.land/x/date_fns@v2.12.0/index.js";
Examples
// If today is 6 October 2014:
var result = startOfYesterday()
//=> Sun Oct 5 2014 00:00:00
// If today is 6 October 2014: var result = startOfYesterday() //=> Sun Oct 5 2014 00:00:00