How to increase function timeout on local environment

How do i increase my netlify function timeout on local test environment, which is netlify dev, o tried this on netlify .toml:
functions_timeout = 25

This is from AI chatGPT, but it didn’t help, bard AI did not help.

I know increasing function timeout is for pro plan, but its my netlify dev on my localhost.

Is it ok to edit the netlify files from node_modules?

CLI will automatically use the upgraded time-limit if you’ve linked it to your Netlify site using netlify link. But your Netlify site should have the upgraded timeout for that to work.

Feel free to edit node_modules if you wish.

I hope editing node_modules won’t be causing some error