I’ve found it necessary to ask very specific questions regarding atomic pieces of functionality; “write a typescript function that does X.” And then a few follow up iterations usually gets me within spitting distance of what I’m looking for.
Raycast has some useful prompts for code questions you can copy/ paste even if you don’t use Raycast. https://ray.so/presets/code