Added type hinting to files helper