Did you create a regular function like function convertToNumber or did you create a cypress command.
If you created a normal function then you still need to export it and import it in your test file.
The commands.js only imports Cypress commands automatically.