export const isLocalLink = ( link ) : boolean => ! link . includes ( "://" ) && ! link . startsWith ( "#" ) ; export const applyBaseUrl = ( link , baseUrl ) : string => new URL ( link , baseUrl ) . toString ( ) ;