Formats a txt doc for import/require statements in .ts