nyt = async (path, token, storage) => {
const key = String([path, token]);
if (storage && storage.getItem(key)) return JSON.parse(storage.getItem(key));
const json = await fetch(`https://nyt-games-prd.appspot.com/${path}`, {
headers: { "nyt-s": token }
}).then((res) => res.json());
if (storage) storage.setItem(key, JSON.stringify(json));
return json;
}