[Home](./index.md) > [bitburner](./bitburner.md) > [NS](./bitburner.ns.md) > [getFunctionRamCost](./bitburner.ns.getfunctionramcost.md) ## NS.getFunctionRamCost() method Get the RAM cost of a netscript function. The base RAM cost per script thread can also be retrieved by using `"baseCost"` as argument to this function. **Signature:** ```typescript getFunctionRamCost(name: string): number; ``` ## Parameters
| Parameter | Type | Description |
|---|---|---|
| name | string | The fully-qualified function name, without the leading `ns`. |