<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [HacknetServersFormulas](./bitburner.hacknetserversformulas.md) > [constants](./bitburner.hacknetserversformulas.constants.md) ## HacknetServersFormulas.constants() method All constants used by the game. <b>Signature:</b> ```typescript constants(): HacknetServerConstants; ``` <b>Returns:</b> [HacknetServerConstants](./bitburner.hacknetserverconstants.md) An object with all hacknet server constants used by the game.