Cómo usar TypeScript para leer un archivo

import { readFileSync } from 'fs';

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