import { getCachedVersion, setCachedVersion, isOnCooldown, setCooldown, setExtendedCooldown } from "./cache" const STEAMDB_APP_URL = "https://steamdb.info/app" interface ScrapeResult { versionString: string | null buildId: string | null } /** * Scrape version/build info from SteamDB for a given Steam App ID. * * SteamDB is a client-side rendered app — the raw HTML from a fetch() is a * skeleton that gets populated by JavaScript. To work around this we: * 1. Search ALL