export const DEFAULT_SECTION_ORDER = [ 'Open Tabs' , 'Bookmarks' , 'History' , 'Top Sites' , 'Recently Closed Tabs' , ] ; export const handleClick = ( event ) : void => { const { target , ctrlKey } = event ; const url = ( target as HTMLAnchorElement ) . href ; if ( url && ! url . startsWith ( 'h' ) ) { event . preventDefault ( ) ; if ( ( target as HTMLAnchorElement ) . target === '_blank' || ctrlKey ) { void chrome . tabs . create ( { url } ) ; } else { void chrome . tabs . update ( { url } ) ; } } } ;