refactor: Update the ext() helper function
refactor: Update the ext() helper function

- The function now takes an array of file extension types to check
against.
- Make sure to remove the . before the extension.

cgabriel5/wa-devkit,cgabriel5/wa-devkit