import chalk from "chalk" ; export const formatId = ( longId ) => chalk . blue ( "[" + longId . slice ( 0 , 4 ) + ".." + longId . slice ( - 4 ) + "]" ) ; export const formatName = ( name ) => chalk . blue ( `[${ name }]` ) ; export const logDefault = ( msg ) => console . log ( `[Host] ${ chalk . gray ( msg ) }` ) ; export type LooseObject = { [ key ] : any ; } ;