Como usar o TypeScript para ler um arquivo

import { readFileSync } from 'fs';

const file = readFileSync('./filename.txt', 'utf-8');
Faramy Stark