srcset-codegen is something i've wanted since the create-react-app days. it's a cli that looks at the images in your project and generates typescript files exporting an object with a src, width and height. if you have @2x, @3x, …, variants it'll include a srcSet attribute as well.