Get the current styles
An object containing the player's styles
RAM cost: 0 GB
Get the current theme
An object containing the theme's colors
RAM cost: 0 GB
Sets the current styles
RAM cost: 0 GB
Usage example (NS2)
const styles = ns.ui.getStyles();
styles.fontFamily = 'Comic Sans Ms';
ns.ui.setStyles(styles);
Sets the current theme
RAM cost: 0 GB
Usage example (NS2)
const theme = ns.ui.getTheme();
theme.primary = '#ff5500';
ns.ui.setTheme(theme);
User Interface API.