"$( (hledger accounts --directive --types) -join "`n" )"
because it does not depend on $OFS and makes your intent clear.