Just create a CompletionItem with CompletionItemKind.File and vscode will try to set an icon based on the text of your label (filename):
CompletionItem
CompletionItemKind.File
new CompletionItem("index.ts", CompletionItemKind.File)