<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [sprintf](./bitburner.ns.sprintf.md) ## NS.sprintf() method Format a string. **Signature:** ```typescript sprintf(format: string, ...args: any[]): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | format | string | String to format. | | args | any\[\] | Formatting arguments. | **Returns:** string Formatted text. ## Remarks RAM cost: 0 GB see: https://github.com/alexei/sprintf.js