7 lines
213 B
TypeScript
7 lines
213 B
TypeScript
function readInput(day: string): string {
|
|
return Deno.readTextFileSync('./input/' + day + '.txt').trim()
|
|
}
|
|
|
|
const delay = (ms: number) => new Promise(res => setTimeout(res, ms));
|
|
|
|
export { readInput, delay };
|