figma.clientStorage API allows you to store data on the user's local machine. Unlike data stored with the document (such as
setPluginData), this data is not synchronized across users. It's similar to the Window.localStorage API, but is asynchronous, and allows storing objects, arrays, strings, numbers, booleans, null, undefined and
localStorage, you should expect that user actions such as clearing the browser cache might clear all stored data.
getAsync(key: string): Promise<any | undefined>
Retrieves a value from client storage with the given
setAsync(key: string, value: any): Promise<void>
Sets a value to client storage with the given