How to rewrite this code so I don't have to force deno to stop linting? - Deno