import { Toggl } from 'toggl-track' export interface IWorkspace { id: number name: string } export async function togglGetWorkspaces(toggl: Toggl): Promise { const resp: IWorkspace[] = await toggl.request('workspaces', {}) return resp }