interface _SetIconDetails {
    imageData?: ImageData | { [key: number]: ImageData };
    path?: string | { [key: string]: string };
    tabId?: number;
    windowId?: number;
}
Index
imageData?: ImageData | { [key: number]: ImageData }

Either an ImageData object or a dictionary {size -> ImageData} representing icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.imageData = foo' is equivalent to 'details.imageData = {'19': foo}'

path?: string | { [key: string]: string }

Either a relative image path or a dictionary {size -> relative image path} pointing to icon to be set. If the icon is specified as a dictionary, the actual image to be used is chosen depending on screen's pixel density. If the number of image pixels that fit into one screen space unit equals scale, then image with size scale * 19 will be selected. Initially only scales 1 and 2 will be supported. At least one image must be specified. Note that 'details.path = foo' is equivalent to 'details.imageData = {'19': foo}'

tabId?: number

Sets the sidebar icon for the tab specified by tabId. Automatically resets when the tab is closed.

windowId?: number

Sets the sidebar icon for the window specified by windowId.