import { Client } from "./client" ; import { TabData } from "../modules/tab" ; export interface StateData { opened_tabs : Array < TabData > ; } export class State { private client : Client ; private id : number ; public state : StateData ; constructor ( client , id ) { this . client = client ; this . id = id ; this . state = { opened_tabs : [ ] , } ; } /**
     * Save the current state into the core
     */ public async save ( ) { await this . client . set_state_by_id ( this . state ) ; } }