[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [sprintf](./bitburner.ns.sprintf.md) ## NS.sprintf() method Complete open source JavaScript sprintf implementation Signature: ```typescript sprintf(format: string, ...args: string[]): string; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | format | string | String to format. | | args | string\[\] | Formating arguments. | Returns: string Formated text. ## Remarks RAM cost: 0 GB